package com.download.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.download.web.entity.BusArticleComment;
import com.download.web.entity.model.AddArticleCommentModel;
import com.download.web.entity.model.CommentModel;
import com.download.web.entity.model.Page;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @description:
 * @author: cmy
 * @create: 2019-02-21 19:41
 **/
public interface IBusArticleCommentService extends IService<BusArticleComment> {


    /**
     * 分页查找文章评论
     * @param artId 文章id
     * @param pageIndex 页数
     * @param pageSize 评论一页查找数量
     * @return
     */
//    Page<Map<String,Object>> commentListPage(Integer artId,Integer pageIndex,Integer pageSize);

    Page<CommentModel> commentListPage(Integer artId,Integer pageIndex,Integer pageSize,Integer objTYpe);

    String addComment(AddArticleCommentModel articleComment);

    Map<String,Object> selectAllList(Integer pageIndex,Integer pageSize,Integer states);
}
